export const formatDate=(data:any)=>{
    if(!data){
        return ''
    }
    const currentDate=new Date(data)
    return `${currentDate.getFullYear()}-${currentDate.getMonth()+1}-${currentDate.getDate()}`
}